Seleziona la fanPage del gioco:

{{fanPageName}}

{% for d in data %}
<br />
{{d.name}}
<form method="POST" action="/setFanPage">
    <input type="hidden" name="facebookFanPageId" value="{{d.id}}"/>
    <input type="hidden" name="accessTokenFanPage" value="{{d.access_token}}" />
    <input type="hidden" name="facebookFanPageName" value="{{d.name}}"/>
    <input type="submit" value="Conferma" />
</form>
{% endfor %}

<form action="/addMatch" method="post">
    {% csrf_token %}
    {{ form.as_p }}
    <input type="submit" value="Submit" />
</form>


Partite inserite nel db:
<br />
<table>


{% for m in matches%}
<tr>
    <td style="border: 1px solid">{{m.description}}</td>
    <td style="border: 1px solid">{{m.reward}}</td>
</tr>

{% endfor%}

{% if lastMatch %}
<tr>
    <td style="border: 1px solid">{{lastMatch.description}}</td>
    <td style="border: 1px solid">{{lastMatch.reward}}</td>
</tr>

{% endif%}




</table>